package com.ftx.common.enums;

/**
 * Created by fengtingxin on 2019/6/11.
 */
public enum ErrorCodeEnum {

    SUCCESS(0,"成功"),

    SYSTEM_BUSY(1000, "服务器开小差了，请稍后再试"),
    PARAM_ERROR(1001, "参数错误"),

    UPDATE_ERROR(1002, "更新数据异常"),
    ;


    private int errorCode;
    private String errorMsg;

    ErrorCodeEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
